(function() {
	var $window = $(window);
	// 加载分类列表树形结构
	coAjax.get(appConfig.bus_classify_tree, {
		bus_id: busInfo._id
	}, function(classify_tree) {
		App.set("$Cache.classify.tree", classify_tree.result);
		App.set("$Cache.classify.pointer_classify", classify_tree.result.childs[0]);
	});

	// 更换选中主分类
	App.set("$Event.classify.change_pointer_classify", function(e, vm) {
		App.set("$Cache.classify.pointer_classify", App.get("$Cache.classify.tree.childs")[vm.get("$Index")]);
		$window.scrollTop(0);
	});
}());